package com.bwhx.eruler.dao.casdilly;

import java.util.List;

import com.bwhx.eruler.bean.casdilly.ClothesType;
import com.bwhx.eruler.bean.casdilly.Contract;
import com.bwhx.eruler.dao.BaseDao;

public interface ClothesTypeDAO extends BaseDao<ClothesType>{

	List<ClothesType> findByTypeCPIDSerial(String contractID);

	List<ClothesType> findByTypeCategory(Integer category);

	List<ClothesType> findByIds(List<String> asList);

 
	List<ClothesType> findByCTNameAndTypeAndProjectSerial(ClothesType ct);

	List<ClothesType> listByContract(Contract contract);

	ClothesType findByID(ClothesType ct);

	void relateClothes(ClothesType ct);

	void deleteById(ClothesType clothesType);

	boolean saveDisplayOrder(List<ClothesType> typies);

	int deleteByTypeCPIDSerial(ClothesType clothesType);



	/**
	 * 根据项目编号获取品类信息
	 * @param ct 包含项目编号的品类信息
	 * @return
	 */
	List<ClothesType> findByClothesTypeBycPIDSerial(ClothesType ct);


}
